import 'package:flutter/material.dart';

import '../components/app_bar.dart';
import '../components/row.dart';

class SettingPage extends StatefulWidget {
  const SettingPage({super.key, required this.title});

  final String title;

  @override
  State<SettingPage> createState() => _SettingPageState();
}

class _SettingPageState extends State<SettingPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CommonAppBar(title: widget.title),
      body: Column(
        children: [
          Expanded(
              child: Column(
            children: [
              RowInfo(label: '作者邮箱', content: 'liyong_private@163.com'),
              RowInfo(label: '使用教程', content: '文档编写中'),
            ],
          )),
          RowInfo(
            content: 'V1.0.0',
            mainAxisAlignment: MainAxisAlignment.center,
          ),
        ],
      ),
    );
  }
}
